/*
 * @Author: your name
 * @Date: 2021-12-22 10:23:43
 * @LastEditTime: 2021-12-22 10:49:07
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \toutiao-m\src\router\index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from '../view/home'
Vue.use(VueRouter)
const routes = [{
    path: '/login',
    name: 'login',
    component: () => import('@/view/login')
  }, {
    path: '/register',
    name: 'register',
    component: () => import('@/view/register')
  },
  {
    path: '/reset',
    name: 'reset',
    component: () => import('@/view/reset')
  },
  // {
  //   path: '/home',
  //   name: 'home',
  //   component: () => import('@/view/home')
  // },

  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/omc',
      name: 'omc',
      component: () => import('@/view/home/children/omc')
    }]

  },
  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/marketing',
      name: 'marketing',
      component: () => import('@/view/home/children/marketing')
    }]

  },
  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/notice',
      name: 'notice',
      component: () => import('@/view/home/children/notice')
    }]

  },
  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/product',
      name: 'product',
      component: () => import('@/view/home/children/product')
    }]

  },


  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/Account',
      name: 'Account',
      component: () => import('@/view/home/components/Account')
    }]

  },
  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/BUYPOINT',
      name: 'BUYPOINT',
      component: () => import('@/view/home/components/BUYPOINT')
    }]

  },
  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/Withdrawal',
      name: 'Withdrawal',
      component: () => import('@/view/home/components/Withdrawal')
    }]

  },
  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/CkmBuy',
      name: 'CkmBuy',
      component: () => import('@/view/home/components/CkmBuy')
    }]

  },
  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/NFTbuy',
      name: 'NFTbuy',
      component: () => import('@/view/home/components/NFTbuy')
    }]

  },

  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/MyPonit',
      name: 'MyPonit',
      component: () => import('@/view/home/components/MyPonit')
    }]

  },
  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/BuyVoucher',
      name: 'BuyVoucher',
      component: () => import('@/view/home/components/BuyVoucher')
    }]

  },
  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/Transfer',
      name: 'Transfer',
      component: () => import('@/view/home/components/Transfer')
    }]

  },
  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/MainBoard',
      name: 'MainBoard',
      component: () => import('@/view/home/components/MainBoard')
    }]

  },

  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/AvatarBoard',
      name: 'AvatarBoard',
      component: () => import('@/view/home/components/AvatarBoard')
    }]

  },
  {
    path: '/home',
    component: Layout,
    hidden: true,
    children: [{
      path: '/home/TotalMAP',
      name: 'TotalMAP',
      component: () => import('@/view/home/components/TotalMAP')
    }]

  },

]
const router = new VueRouter({
  routes
})
export default router